package com.hue.springbootneo4j.repository;

import com.hue.springbootneo4j.entity.StarRelationShip;
import com.sun.org.apache.bcel.internal.generic.LXOR;
import org.neo4j.ogm.response.model.RelationshipModel;
import org.springframework.data.neo4j.annotation.Query;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface StarRelationShipRepository extends Neo4jRepository<StarRelationShip, Long> {
    @Query("match (s1:`明星`)-[r]->(s2:`明星`) return r")
    List<Map<String,RelationshipModel>> all();
}
